package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gcgl.domain.YyProjectReust;
import com.ruoyi.gcgl.mapper.YyProjectReustMapper;
import com.ruoyi.gcgl.service.IYyProjectReustService;

/**
 * 项目成果管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
@Service
public class YyProjectReustServiceImpl implements IYyProjectReustService 
{
    @Autowired
    private YyProjectReustMapper sjProjectReustMapper;

    /**
     * 查询项目成果管理
     * 
     * @param id 项目成果管理主键
     * @return 项目成果管理
     */
    @Override
    public YyProjectReust selectSjProjectReustById(Long id)
    {
        return sjProjectReustMapper.selectSjProjectReustById(id);
    }

    /**
     * 查询项目成果管理列表
     * 
     * @param sjProjectReust 项目成果管理
     * @return 项目成果管理
     */
    @Override
    public List<YyProjectReust> selectSjProjectReustList(YyProjectReust sjProjectReust)
    {
        return sjProjectReustMapper.selectSjProjectReustList(sjProjectReust);
    }

    /**
     * 新增项目成果管理
     * 
     * @param sjProjectReust 项目成果管理
     * @return 结果
     */
    @Override
    public int insertSjProjectReust(YyProjectReust sjProjectReust)
    {
        return sjProjectReustMapper.insertSjProjectReust(sjProjectReust);
    }

    /**
     * 修改项目成果管理
     * 
     * @param sjProjectReust 项目成果管理
     * @return 结果
     */
    @Override
    public int updateSjProjectReust(YyProjectReust sjProjectReust)
    {
        return sjProjectReustMapper.updateSjProjectReust(sjProjectReust);
    }

    /**
     * 批量删除项目成果管理
     * 
     * @param ids 需要删除的项目成果管理主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectReustByIds(String ids)
    {
        return sjProjectReustMapper.deleteSjProjectReustByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目成果管理信息
     * 
     * @param id 项目成果管理主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectReustById(Long id)
    {
        return sjProjectReustMapper.deleteSjProjectReustById(id);
    }
}
